package com.xuanwu.ai.flow.controller;

import com.xuanwu.ai.flow.dto.FlowAccountReqDTO;
import com.xuanwu.ai.flow.service.TenantFlowAccountServiceImpl;
import com.xuanwu.ai.web.views.ResponseVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@Api(value = "租户流程账号相关接口", produces = "application/json")
@RestController
@RequestMapping(value = "/tenant")
@Slf4j
public class TenantFlowAccountController {

    @Autowired
    private TenantFlowAccountServiceImpl tenantFlowAccountService;


    @PostMapping("/createTenantFlowAccount")
    @ApiOperation(value = "创建租户流程账号", notes = "创建租户流程账号")
    public ResponseVo createTenantFlowAccount(@RequestBody FlowAccountReqDTO flowAccountReqDTO) {
        tenantFlowAccountService.createTenantFlowAccount(flowAccountReqDTO);
        return ResponseVo.success();
    }


}
